﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

#pragma once

#include "GcmpModelInterface.h"
#include "IObject.h"

namespace gcmp
{
    class ISpecificDbElementEventArgs;
    /// \brief 特定DB元素事件处理接口基类
    ///
    /// 需要关注特定DB元素改变事件， 从这个类继承
    class GCMP_MODEL_INTERFACE_EXPORT ISpecificDbElementEventHandler : public IObject
    {
        DEFINE_CAST_DERIVED(gcmp::ISpecificDbElementEventHandler, gcmp::IObject)
    public:
        /// \brief 事件处理接口
        /// \param pArgs 事件参数
        /// \return void
        virtual void On(ISpecificDbElementEventArgs* pArgs) = 0;

        /// \brirf 析构函数
        virtual ~ISpecificDbElementEventHandler() = 0;
    };
}

